package controllers.similarity;

import uk.ac.shef.wit.simmetrics.similaritymetrics.InterfaceStringMetric;


public class StringSimilarity
{
    float                 weight;
    InterfaceStringMetric metric;


    public StringSimilarity(InterfaceStringMetric metric, float weight)
    {
        this.weight = weight;
        this.metric = metric;
    }


    public float getSimilarity(String s1, String s2)
    {
        return metric.getSimilarity(s1, s2);
    }


    public double getWeight()
    {
        return this.weight;
    }

}